internal error - undefined 'log'