removes unused extensions