finally got foo.txt working