set correct filetype