modified how we emit that we are done from the router