minor changes to how I was opening files