added functions to add/remove security group rules