middlewear is starting to work