added some x dom fixes