lib/connection working