add function to list security groups
switch to a single sed command instead of parsing json