fixes for pruning