output directory fix