script used to handle files with specified suffix