messages system retrieve method updated