fixing cwd setting