xml log now written using print command to avoid eol weirdness