- add current state of middleware