sending better formatted output + error