A U.S. District Court judge in California has ruled that two environmental activist groups did not prove the EPA awarded federal registrations for a host of crop protection chemicals that put endangered species at risk in a lawsuit they filed in 2011.

In granting a motion to dismiss the groups’ “Mega” lawsuit, Judge Joseph C. Spero said the plaintiffs — the Center for Biological Diversity and the Pesticide Action Network North America — had not alleged specific government actions sufficient for the lawsuit to proceed.

The judge gave the plaintiffs 30 days to file an amended complaint or 60 days to appeal the ruling to the 9th U.S. Circuit Court of Appeals.

Jeff Miller, a conservation advocate for the Center for Biological Diversity, said the two organizations were weighing their options, but had not decided on a response.

The CBD and PANNA lawsuit claimed the registration by EPA of more than 380 chemicals without consultations with other agencies could negatively impact 214 endangered species in 49 states.

CropLife America, an umbrella organization representing many of the nation’s largest pesticide manufacturers, and EPA filed the motion to dismiss the lawsuit. “The complaint was certainly too vague and missed the mark on a host of legal factors,” said Jay Vroom, president and CEO of CLA.

The National Corn Growers Association, which also asked to intervene in the case, called its dismissal a “sweeping victory for growers.