Does the if/else here make sense?  Why does it need to be treated differently if we have `-runLocal` set?