updated listaccounts to return all accounts