small rework (still experimental)

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>