registry reader only needs strings
move logging closer to usage