fill caps property based on flags