add and pass AllowEvents