3p reg - addition of AsInvocation class and parsing