for debugging remove iostream from bww2mxml