new config API and config file format