add ability to skip files via user-defined function