almost done with plugin