added norm and fixed xml export