refactoring for map, ensure preprocessed files are correct too
handle more cases in refactoring scripts, if_else and inf/minf/valmin