fixing filetype loading