bug fix core - adding root document element addition by default