add isOnline stuff