modified input file path for flattrees compatibility