changed access on ApiInvocation