add account server service; refactor all the things