update changelog
update middleware docstring