higher order routes in preparation for api