add gConfig into config.cpp