moved filetype setting to after directory