attach metadata about the source to the result map

also show source in exception messages