updated offline detection mode