2.2: capture warnings during do(). improvements to API::Methods.