create connections from ConnectionParameters and optional stream