a simple repeat file check script