PERF: generalizing location of code
ENH: setup is correct for full conversion to RKRNS functions