added basic connection func interface