Plugin config lifecycle

Hi, i think you can use the solution in this tread