email output fixes