put global variables into a single struct