name the register function
update events registering to work with hapi8