slightly simpler code on client side
handling disconnects