remove global foldnestmax and mkview