add api for search
merge windows version