got some dir stuff to work. need to tweak code to fix some tests that broke. 37 still failing