update plugin templates to match new interface