code of message_t cleaned and added more logs