made the upstream connection script and ui stable enough