server.cpp light fix