refactored all invocation code into separate callbacks
refactored all invocation code into separate callbacks

kbase/invocation,kbase/invocation,kbase/invocation,kbase/invocation,kbase/invocation,kbase/invocation