add exception handling for malformed tag files