implementing sending EOR from the API