set orientation for thermal generator (for output) & fix bugs