begin to change xml gen to eliminate empty env