added support for recursive call of dynamic method