added thr_id method & added optional variable to msg_att