replace host and port with Settings struct