Problem solved. I was not acquiring the PerMsgStatus object correctly from the options passed to "check_start". I misled myself with the ReplaceTags plugin using the variable "$pms" and I thought that was the PerMsgStatus object. But in that code, $pms->{permsgstatus} is it.
thanks