added routes for api calls