weird buggy errors with heartbeating