reimplementazione con txd/api-helpers