add new generic irloop functions