events refactored: context -> slave
switch events initialization to new events