generate url only once for heartbeat