updated script to initialize repo