separating out error and warning messages, making sure all errors are included in results, splitting global view of data and sort types