convert bools to flags so it is easier to add new ones