delete tree on server shutdown
fix header