- use write to allow binary data as well