more parameters added, cleaner config_set_opt