bugfix: use FileType instead of file extensions