You don't need an agreement.
Tthe EU commission has tried to create schemes bypassing the issue, and twice they were dismantled by the EU supreme court.