better handle for FileType event