update msg&option code