give access to socket object