small refactoring for Webdav connection