Add some utils to old ec