add plugin to resource