pruning: work in progress, debugging