fixed jsonify
fixed detail_state