changed message formate to JSON