add connection implementation