restructured so that certificate is created from the response_set