correct working directory issues