relay: initialize the internal status