bug fix: set work_dir