added clear_all to ulitlity

so errors in record and collection can consume the rest of the input
line