old 'envconf' code replaced