updated to change in cryptoutils + corrected some errors