skipBadFiles flag implemented

same as #2404