added setloc to check hostname & conditionally adjust teaching dir