use a clone of resp for each handler