added WIG support