heartbeat server finally outputs valid json, sorry about that