updated autoreduce to send message in json data format