fixing directory issues