initialize execute_msg to a Msg in case there is an error before the first code is executed
eliminate deprecation warnings