implement clear_message which was in the POD but left out of the code