v0.3.0 added option to add events dynamically