misc. minor tweaks
improved private key CLI logic