P: connection inpt without StringIO