no need to restrict foldnestmax