#152 added events for main object