dont create two io objects. just connect to the right url the first time