added write binary for windows (other version)