handle security group rules better
fix changes from feedback
Merge pull request #2 from sportngin/group-rules

Handle security group rules better