fixed alias and priv key bugs