added support for methodcalls as arguments