modify for log_in log_off heart_beart