fix work dir prep