reshuffle the configuration via xml part

Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
reimplement the topfrags part

this allows us to conditionally add fragments :)

Signed-off-by: Arnav Gupta <championswimmer@gmail.com>