added softmask/tgroup implementation