change offline detection