refine config, remove the const string&