adding accessors to the on*Callback variables