updated plugin template with standard functions