added file regex to support errors