argument assertions from previous version off IOStream:connect()