liveness implementation