add exception for missing __type__