abbrs and anchors do now behave depending on uri? + some refactoring.