parent environments
much improved main