Replace config file with yaml config file