change logic for last checkin and add device updater controller