in practice, i think this will only ever execute once. @imathis's pattern above seems to encompass the entire call, no?