fix middleware flow
bump version to 0.1.1