update to new parameters of msg_send()