fix for crypto deprecation warning