Huge commit : changed design

Signed-off-by: Julien Bonvarlet <jbonva@gmail.com>