[fix] use console.log to ensure output can be parsed