move categories to cfg
handle cfg.categories
remove hard-coded factors
replace categories
add root dest
use root dest
use root dest
use root dest
import cfg
add comments
only simple
revert categories