reimplemented sweep private key