use new dal algorithms to determine the encironment for the root controller