emit open/close events
0.0.3