changed order of functions in EM engine source file