write out EOT marker