removed offline check