closed connections, added configurabiliy on used protocol