call init hooks before adding layers (fixes zoom anim regression)