War on global variables in almost won is webserver