better way of manipulation the plugin manager