tidy up setup_options