prevent adding of nonexistant classes