write sync to stdout