add support of method calls