changed way of discovery plugin installation