removed default config, changed the logic of handling configuration