updated heartbeat.sh with latest version