used string writer rather than byte array output stream in start args