add header global.h
Merge branch 'dev'