updating to ExecProcessAndReturnMessages