Take config to a yaml file