fix old file name
reduce complexity of directory creation