refactor prsence handling, read user profile, timestamp skew