added to socket functionality in post module