patched stack