address events array bug and include options instead of named parameters