updated to work with new ibcrypt