missed one of the fstream opens in my previous commit