complex factory environment