reset to default state and remove plugin defs