add OFFLINE_SERVER state
modify proto