implemented webservices and modified existing classes to migrate residencies