support ec

Change-Id: I9d18b8d1c314f45a4b9303c5d3b02279f73a483c