basic cwd feature finished with bug fixes