[WIP] EventHandler api to register callbacks