some updates (merging and pruning)

Signed-off-by: Alexander Skjolden <alex@plastboks.net>