moved to api routes, removed code