rawMapWriter to conform to our xml format