plugins: towards a plugin system