President Obama and his top national security officials spent the past few days warning that once intelligence-gathering authorities in the Patriot Act expired just after midnight Sunday, the United States would face a greater risk of a terrorist attack.

That argument is highly debatable—at least, in the short term. Not only does the U.S. government have all sorts of other ways to collect the same kind of intelligence outlined in the Patriot Act, but there’s also a little-noticed back door in the act that allows U.S. spy agencies to gather information in pretty much the same ways they did before.

In other words, there’s a zombie Patriot Act—one that lives on, though the existing version is dead.

On Sunday night, senators voted overwhelmingly to end debate on a measure passed in the House, the USA Freedom Act, which will leave most surveillance authorities in the Patriot Act intact. But some of those powers won’t expire at least until Tuesday and possibly Wednesday. Administration officials had warned that even a momentary interruption posed a grave risk.

“I don’t want us to be in a situation in which for a certain period of time those authorities go away and suddenly we’re dark, and heaven forbid we’ve got a problem where we could’ve prevented a terrorist attack or apprehended someone who was engaged in dangerous activity,” Obama told reporters at the White House on Friday. On Sunday, CIA Director John Brennan said on CBS’s Face the Nation that there’d “been a little too much political grandstanding and crusading for ideological causes that have skewed the debate on this issue,” an apparent reference to Senator Rand Paul, a Republican presidential candidate, and his promise to force the law to expire, “but these tools are important to American lives.”

They may be. But they are far from the only tools in the counterterrorism arsenal, and though they are no longer law as of Monday, the United States still has plenty of authority to collect intelligence on jihadis and foreign spies.

For starters, there will be what’s left of the Patriot Act itself. One former U.S. intelligence official told The Daily Beast that Section 214 of the law, which allows “pen register/trap & trace,” could be used to collect phone and even email records. That would not only cover the gap from the expiring NSA program that collects the phone records of Americans’ landline calls, but potentially expand the government’s collection. (No wonder the NSA largely views the bill that would reform the Patriot Act as a major win.)

That former official and another both noted that there are other tools, including under different laws than the Patriot Act, for obtaining “roving wiretaps,” which allow the government to monitor one person’s multiple communications devices.

Following the Senate vote to proceed on to the Freedom Act, Senator Jim Inhofe (R-OK) told The Daily Beast that the intelligence agencies did have a means to continue surveillance of terrorists and spies.

“I think there are other tools that can be used, but I’m not going to elaborate on them,” Inhofe said.

Director of National Intelligence James Clapper said in a statement Friday if that provision expires, “we will no longer be able to get orders allowing us to effectively track terrorists and spies who switch communications devices.”

Maybe not under the Patriot Act. But both former officials said they were confident that a judge would still grant a warrant drawn up for a single suspect and his multiple devices. They also pointed out that the roving-wiretap provision itself has rarely been used. (According to U.S. courts, 11 roving-wiretap orders were issued in 2013, the most recent year for which figures are available.)

Then there’s another powerful tool that the FBI and intelligence agencies have long had in their arsenal and still will—national security letters. They make it relatively easy for investigators to gather up all kinds of communications records. This authority can be used to collect phone, Internet, and financial records.

National security letters were actually around before the Patriot Act became law in 2001, but the legislation lowered the standard that the government must meet to obtain them. They’ll still be comparatively easy to get now that portions of the Patriot Act are off the books.

As for another fearsome sounding and about-to-die provision, the “lone wolf” authority that lets the government track someone who isn’t connected to a known terrorist group, it has never been used. That’s despite the fact that the very threat for which it was written—attacks by individuals who are merely inspired by extremist groups, such as ISIS, but aren’t actually connected to them—appears to be at an all-time high. Whatever provision of law is meant to stop these would-be killers, it’s apparently not in the part of the Patriot Act that expired Sunday night.

Here’s another thought that calms spies’ unsettled nerves: There’s actually a loophole in the Patriot Act that could keep one expiring provision more or less alive. Section 215 in the existing version of the law allows the government to obtain any records deemed “relevant” to an investigation of a terrorist or a spy. As of Monday, the criterion switched back to the pre-Patriot Act standard of records that “pertain” to such an investigation.

“But thanks to a little-noticed grandfather clause in the law,” the relevance standard “will remain available for investigations already open at the time of sunset, as well as new investigations into offenses committed before the sunset,” Julian Sanchez, a noted surveillance expert and critic of the Patriot Act, wrote in a recent post for Motherboard. This could prove to be the main zombie provision in the undead Patriot Act.

But it’s not the only one. All investigations underway right now that use any of the other expired provisions also will be allowed to continue, current and former officials have said in recent weeks. So, there’s no risk that government monitors will “go dark” on any terrorists or spies they’ve already started tracking.

Some lawmakers continued to warn that even a short interruption in some surveillance authorities posed a risk to national security.

Senator Bob Corker (R-TN), the chairman of the Foreign Relations Committee, said the expiring provisions could mean the United States is unable to collect particular kinds of intelligence. But when asked whether the grandfather clause in the Patriot Act didn’t provide some assurances that investigations wouldn’t be derailed, Corker acknowledged, “You may be grandfathered in if the case is underway.”

Corker said he thought there was some “fuzziness” in the bill, then added, “I don’t want to overstate the problems that exist.”

Senator John Cornyn (R-TX) blasted Paul for what he described as delaying tactics that kept the chamber from enacting the USA Freedom Act on Sunday night and ensuring continuity to existing surveillance powers.

“It does seem to me at least reckless to not allow at least a temporary continuation of the bill while we have this debate,” Cornyn told The Daily Beast. “But that’s not the way it’s working, and unfortunately I think it’s part of the presidential campaign, and I think people have to judge it for themselves.”

Senator John McCain (R-AZ) said that as far as he was concerned, administration officials should be taken at their word when they warned about security risks from any expired provisions.

“All I can tell you is what the director of the CIA said on Sunday,” McCain told The Daily Beast. “If we allow it [to] lapse, the nation is at greater risk. That’s sufficient for me.”

Of course, there may be some new investigations for which the government will have to come up with different authorities for collecting information. And intelligence officials have been planning for that, CIA Director Brennan said Sunday.

“Law enforcement and intelligence professionals will always use whatever authorities and capabilities and tools they have,” Brennan said. “And if these lapse, I think we’re going to have fewer tools. But we will be working as hard as we can to protect the American people. We have a very good track record of doing that.”

Parts of the Patriot Act may have died. But American surveillance will live on and on.

—Alexa Corse and Tim Mak contributed reporting.