some filetype conversions