added print function to zmsg