refactor config class * fix specs #WIP
fix specs