added connection/file check
added connection/file check
added connection/file check