fixing some directory issues