add simple connect support.