callbacks now accept class member reference