set default work_dir to '.'
refactor default options