added heartbeat class for service auto discovery