trying to define cwd