todo: fix inconsistency between this and work_dir.