Change global plugin API to match local plugin API