initialize cwd