energy flow management