[backend] bugfixes for prune-results
[backend] cleanup