separated program flow depending on which checkboxes were selected. WARNING: there is still an issue with logging.