adds method to assign unique id to each message according to channel and some routes