change the function to send searchgw msg