added getAccountsList function