use the new relation API