updated socket integration