introducing support for StubExec, StubExecError, and StubExecFunc