add type for HSM