fix working directory issues