combine const and global file into one