work to fix async call to socket