move outbound flow to endpoints in order to make it consistent with the other templates