added xTap methods, to allow arbitrary function injection.