added initFinished and hasNetwork check