fixed script to use seccgroup variable