add animation
fix multi thread bug