add support for routing errors