add condition to start generate *.eo file
add function to generate *.eo files