change to json.dumps instead of jsonify