handle continuations more correctly