add -only_folded flag