replace a linear search in flatten with a hash map
send the HTTP response as 1.0, not 1.1