refactored unsupported filetype exception