finish the code of the config file