How to handle multi-step branches - Mastra