working on docs
add support for handleEvent