remove  magic numbers, rename variables
cgi: fix error when master & chunkserver die