restore patterns file