better STREAM_URL parsing