rewrote all routes to use the update schema. code cleanup