fix directory issues