removed old debug
correct link generation