cmlDepthmap refactor