better exception messages for router