a bit of reorganization
use sorted set instead of hash for mac -> timestamp (and conversion script)