fixed a couple of issues with security groups