@yarikoptic and @hanke  : could you suggest some better ways of getting at this info without hooking into extra dependencies? we can definitely improve this later, but this branch is otherwise in reasonable shape to merge.