messages were still getting added if they already existed... fixed it