bi-directional energy flow