fixed directory issues