modified search functionality
modified socket msg handling