added selective carving and carving mode