added connection api