fix applications to  run in nonlocal environment. Also improve the talk a little