addapting to foreman new plugin interface