updated script to manually rebuild repo