writeGlobalParams