fixed
now makes output directory