add globals.c to index