rove code related to EM acceleration