add assertions on tex load failure