protect against classes without an instance