debug logging removed
links are now just a lowercase dictionary