server thingyg not working, global var added