updated cleanup code for animators for STATIC ENV