adds offline conditional
version