make execute method accept single ec AND array of ecs