checking offline connection and fix file transfer library