add code to init EM from a given state (fastphase)