fix options, replace sys.print => console.log