update routes and dir structure