better router path_to errors
handle 404s and 500s