gets rid of chdir