rewrite filetype setting section