improve security group API