fixes #10 - digest errors