move populatesites to setup script