response struct serializes as a constructor