add swift client connection creation code