almost done on storage adapter for accounts manager