connect to the repository