successfuly added EC and most of the stuff in it