update output directory