fix COLLATE
C->c
move to has_flag instead of individual flag properties