fixed for ec 5.0+

removed dependency on numeric ids