remove offline/online code