improve auto_filetype