rewrite config.hpp