modify path for output and add new output directory