eventsourcearn split is not a function