made a sub to handle rebuilding repo list