add install and deinstall routine for resources plugin