added global.hh and global.cc