added autoprune