more small changes with the express middleware. still need to implement 4/5 API methods