added legacy api routes. fixed admin routes