finished config.cpp/h