let template discovery process inherit environment