some filetype handling