debug
add heartbeat function
come back