explicit imports and neater ensureKind