checks if CFG->block_learn_categories is set first, line 23
minor bugs and depr. code