added exception for addresses
retab and added saving code for priv keys