allow repo and repo directory to be specified