better error reportting in router