fix console logging error + updated example