various fixes for security groups