some plugin cleanup