cleaned up the globalIncludes function