make instance method for service locator