oops DRY'ed the wrong API