BUFFALO – After three defendants fatally overdosed in a single week last year, it became clear that Buffalo’s ordinary drug treatment court was no match for the heroin and painkiller crisis.

Now the city is experimenting with the nation’s first opioid crisis intervention court, which can get users into treatment within hours of their arrest instead of days, requires them to check in with a judge every day for a month instead of once a week, and puts them on strict curfews. Administering justice takes a back seat to the overarching goal of simply keeping defendants alive.