init the global struct