prevent addition of nonexistant classes