remove lua bridge, define base plugin interface