code: add runtime functions for extending existing thunks