refactored to create cleaner, more modular template codes. changed settings to support switch between IQS at EBI and HWU