wedge in a way to register a message for multiple types