wrap nextPK actions in a transaction