fixed engingeoutput routine