Smart grids need smart rules and smart markets