plugin api draft