added gem to look for file type