setenv handling. Configurable number of workers