0.2.0 add callback to open/close