fix printing and workdir