use local z_message to remove a memory leak on stream data