changed workingdirectory to cwd