fixed restapi calls to new locations.