added debug and improved order of routes
added deps