add passed pattern file