remove code cruft from read_response
replace get_and_del_attr with pop, oops
remove get_and_del_attr (use pop instead)