put globalinfo gathering into methods