working on routes for API