merge custom parameters into main config, fixed #2003