main: avoid segments names/content conflict
main: resilience on decodeSuccess, add more debug
add tests structure