add response serialization on client