removed dependency on crypto