add process.stdout.write & process.stdout.stderr.write support