more robust way to clone repo