unify Context/Card
wip more shared code btw unix/win