remove requirement for repo and ref, add uri option