addressed output directory issue