implement notion of "current working directory" in tex compiler. some layout changes