let vd accept an optional target directory