wip on sub-env-restrict
sub-env-extend2
fix use of extend2
minor tweaks