fix prune script