last version failed the linking stage with large datasets due to exp growth. fix.