add online/offline status with lwt