use the plugin function of firstactive