getting rid of dependencies on config