debug links again
This must really be refactored