use $log instead of console