use jsonify instead of make_response