service locator + config