fix for error reporting, payload creating

* properly display number of errors on compile
* fix for expected payload value missing