add common functions for the new config file format