moved load_EMF to pre.sh