made outputdir better