pull the "workdir" out into a variable