small changes for socket worker