#74: open/close events
general fixes