revised dir structure for output redirect