rewrote plugin a little better, like the staff plugin