replace error prone json config with yaml config