add format_multiline() helper and include stdout in reports
fix limit() ops