add digest support