add plugin to lifecycle