added support for recursive call of dynamic method

added support for recursive call of dynamic method