set directoryenvironments param in proper class