register join/leave commands