progress on api routes