updated serval plugin hooks