minor fixes

minor fixes
need to create an async class for the socket connection