router error checking