modify sample config file to fit the current content