added plugin for lifecycle