added locator as callback parameter for creating service