merge and compress metadata message

DO NOT MERGE NOW
* merge changes with the previous message.
* compress metadata message.