fixed where.first
ported contacts sync to messages