heartbeat script for marid