data format changes
send mail on success/failure