updated plugin example