rewrote digutil other minor fixes