adding discussion data and fixing a minor IOException