text: Krark's ability triggers at the same time as any other abilities that say "When you cast this spell" or similar, including cascade. Those abilities may be put on the stack in any order. Those triggered abilities are unaffected by the original spell being returned to hand, countered, or otherwise removed from the stack.