folds for xml et al