fix heartbeat start bug, add temporary logging