added a heartbeat to check for online status