wip
add working heartbeat for automatic garbage collection