minor tweaks to the unreg implementation