required namedtuple def in main module too