added MSG & STATUS output variables