fixed server on/off check