add support for plants_lib calls during mg_regenerate