changed search commmand to threadsafe, and added more threadsafe tag