added debug info to generatelinks because it does work in a shell but not in buildscripts yet