update indexAdvertisement and messageDecoder/sender