working register and get event bindings