use console rather than window.console