changed frame counter for EM engine counting upward instead of downward