use stub instead of patching in an accessor