add callback to build routing (requires transaction - still missing closure)