change last_network_state to be a single-use buffer