used proper links for indir and outdir