removed middlewear