updated to use Foreman::Plugin api