introducing a new way of registering events