removed chdir