put patterns in a yaml file