moved check for options.console to a place where options object is set.