registering message types