improve ls_plugin_api_t