use process.stderr.write instead of console.warn