add filter to searchFileType
improve some stuffs