added ability to interpret input file