shouldn't this be in some `scope(exit)` block?