some progress on dir stuff