added wallet encryption code