added getDepth and getDepthMsg