added smal flags