fixes for security groups