catch NameError as well