Added automatic digest support

fixes #102