ah ok. I misunderstood your previous comment. so do the lookahead and terminate - but do it in process_shared and not before?