rename main.h to global.h, and create main.h only called by main.cc