move master info code to a common spot