rebased on run.AutoModule
changed TaskVar to NestedVar following run change