improve the client life cycle