minor protocol changes; register now generates client IDs