get socket from this to be able to pass named functions