initial code. Issue: the browser stops sending traffic.