client registering and messaging work