how to declare a plugin