fix up some directory issues