update  getPluginTypeMap method