remove duplicate scripts
new scheme of group flags