adding a check script for corrupted files