add major and class cache