added support for method calls by name