- remove unnecessary client->newstate - clarify purpose of client->next by renaming to client->cleanup