refactor: pass in app config for services. Ref #106