added queue of message struct
added common structure of connection