made cf security group unique and fixed various bugs