add GetAccount & refactoring

Signed-off-by: Stéphane Depierrepont <toorop@toorop.fr>