improved secureHash support