getting plugin to work in new 3.0 framework