add flash middleware
bump (v0.5.2)