more plugin manager code