yeah, we're just storing a few data elements which are needed for reporting later. since this function could be called without a msg parameter, we need to make sure we don't set them on a null object.