fix plugin system