added command handler to the text heartbeat