revise api routing, flow should be just one exec function for now