new pattern file format