add remove_client_model middleware