make sms_parallel_loop() search all enclosing do-loops