ugly hack to catch errors when reading lists (e.g. - an unclosed string inside an unclosed list should throw an error for the *list*)