added -g option for sec-group