removed refresh when unsetting cwd