update file type detect