move Config and establishConnection into the library