fix middleware
release 0.2.1