added anchor href translation
other fixes