fixed up error states for routes