plugin api methods