replacing work-dir