added if server down code