fixed compiler warning
update foo-lang
implemented manual heartbeat for demo