re-apply local variables after running

  This fixes #5.