refactoring install scripts to avoid duplicate repos