patch API leak