save the pointer of the handlers and added refs to the options