refactoring + change reception of messages in Decoder + PutIndexAdvertisement()