fixing parsing of collections genrally