added wgt support