Smart energy needs smarter regulation