change return format from json to textplan