early work of private key checking