 		for k, v of opts
 			# options starting with a "_" are considered private
 			if v != undefined and not set_opts.hasOwnProperty(k) and not k.startsWith("_")
-				CUI.error "#{cls}: opts.#{k}, not supported. check_map: ", check_map, "opts:", opts
+				console.error("#{cls}: opts.#{k}, not supported. check_map: ", check_map, "opts:", opts)
 				# delete(opts[k])
 
 		# CUI.warn "#{@__cls}.opts = ", dump(set_opts)

					post = ""

				# CUI.error("%c #{cls}: opts.#{k} is deprecated.", "font-weight: bold; color: red; font-size: 1.2em;", post)
				CUI.error("#{cls}: opts.#{k} is deprecated.", value)

			if v.check and (not isNull(value) or mandatory)
				if CUI.isArray(v.check)

					check = v.check.call(@, value)
					if not(isNull(check) or isBoolean(check) or isString(check))
						_check = check
						console.error("CUI.Element.readOpts: check needs to return Boolean, null, undefined or String.", "opts:", opts, "opt:", v, "return:", _check)
						if _check
							check = true
						else
