finished conf.cpp