periodically check for new messages