automatically detect registry hostname
Tracker struct, refactored a bit