adapting plugin installation to new api