make prevention of folds within codeblocks more robust.