update for change in TargetOptions refcounting