- add support for cwd option