sys.puts instead of console.error for better logging