changed inject to injectConfig