tweaking
simplification of href handling