progress on sanitizing input file