add config for folding