fix the sectioning and print out more helpful information if a build
fails