update code for dlib/utils