plugin add, cleanup