smarter version injection