make the writeData() change binary backwards compatible