leaves and keepalive