use namedtuple instead of hard-coded type
add back in int64 pack for time that got lost in another commit