started code for checking server status.