flexibly support drain event
fix drain bug, version bump
0.1.7