Toward smart grid: active management of MV network