updating output message to support xml,json format