Now got able to run in ADVANCED_COMPILATION
collect data for production

 fix some templates