modified the assignment of sites from the datastore