modify the keystore and fix a interface bug