hopefully fixed a bug caused by parsing lots of extra whitespace in the file