crashes due to private key error