how to use a cwd