renamed onCtxReset -> onCtxDiscard
added discarding of untagged file changes