now can query and get only latest messages