apply latest changes to scan plugin api