refactor to use credentials and .repo-meta.yml file in home dir of repo