update plugin manager, most code from deluge