[minor] allow adding plugins and their configuratins, use proper plugin type