more changes, to remove the repository dir variable.