test(config): initialize config from the outside
refactor(config): externatlize state