readding try-except logic for swallowing bad extensions