initial internal link handling (work in progress)