added support for deep method invocations