error route added. some fixes too