move response out of C into ruby.