parametric detailed rpeorts, now both on document and message. Robustness fixes