do not write references to loop and if bricks to xml